﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Lesson02
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            ContentPlaceHolder content = (ContentPlaceHolder)this.Master.FindControl("MainContent");
            int width = 150;
            LabeledTextBox prompt1 = new LabeledTextBox();
            prompt1.PromptWidth = width;
            prompt1.PromptText = "Enter name:";
            content.Controls.Add(prompt1);

            LiteralControl br = new LiteralControl("<br/>");
            content.Controls.Add(br);

        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
